
import Vue from 'vue';
import Router from 'vue-router';

//底部tab
import Home from '../components/home';
import Member from '../components/member';
import Search from '../components/search';
import Shop from '../components/shopcart';

//页面九宫格
import News from '../components/news';
import NewsDetail from '../components/news/detail';
import PicShare from '../components/picShare';
import PicDetail from '../components/picShare/detail';
import FeedBack from '../components/feedback';


Vue.use(Router);

let router = new Router({
  routes:[
    {path:"/", redirect:{name:'home'}},
    //底部tab
    {name:"home",path:'/',component:Home},
    {name:"member",path:'/member',component:Member},
    {name:"search",path:'/search',component:Search},
    {name:"shop",path:'/shop',component:Shop},
    //页面九宫格
    {name:"news",path:'/news',component:News},
    {name:"news.detail",path:'/newsDetail',component:NewsDetail},
    {name:"picShare",path:'/picShare',component:PicShare},
    {name:"picDetail",path:'/picDetail',component:PicDetail},
    {name:"feedBack",path:'/feedBack',component:FeedBack},
  ],
  linkActiveClass:'mui-active'
})

export default router;
